<%@taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Internetowy System Zarządzania Automatami Sprzedającymi</title>
<meta name="description"
	content="Mini Social is a free website template from templatemo.com" />
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/coda-slider.css" type="text/css"
	media="screen" charset="utf-8" />

<script	src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js'></script>
<script type="text/javascript" src="js/jquery.scrollTo-1.3.3.js"></script>
<script type="text/javascript" src="js/jquery.localscroll-1.2.5.js"></script>
<script type="text/javascript" src="js/jquery.serialScroll-1.2.1.js"></script>
<script type="text/javascript" src="js/coda-slider.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>

<%@ page import="engineer.clientapp.beans.User"%>
<%
	User user;
	String username;
	String type=null;
	String status = null;
	if (session.getAttribute("user") != null) {
		user = (User) session.getAttribute("user");
		username = user.getName();
		type=user.getType().toString();
	} else {

		username = "Nieznany";
	}
%>
<link rel="shortcut icon" href="images/ikonka.ico" type="image/x-icon" />
</head>
<body>

	<div id="slider">
	
		<div id="templatemo_sidebar">
		
			<div id="templatemo_header">
				<a href="index.jsp" target="_parent"><img src="images/templatemo_logo.png" alt="Automaty" /></a>
			</div>
			<!-- end of header -->

			<ul class="navigation">
				<%
					if (session.getAttribute("user") == null) {
				%>
				<li><a href="index.jsp">Strona Główna<span class="ui_icon home"></span></a></li>
				<li><a href="index.jsp?page=login#page">Zaloguj<span
						class="ui_icon services"></span></a></li>
				<%
					} else {
						
				%>
				<li><a href="index.jsp">Strona Główna<span class="ui_icon home"></span></a></li>
				<li><a href="index.jsp?page=userPanel#page">Panel Użytkownika<span class="ui_icon aboutus"></span></a></li>
				<li><a href="index.jsp?page=showAutomats#pages">Pokaż Automaty<span class="ui_icon services"></span></a></li>
				<li><a href="index.jsp?page=mapsAutomats#pags">Lokalizacja Automatów<span class="ui_icon services"></span></a></li>
				<li><a href="index.jsp?page=messages#new">Braki w Automatach<span class="ui_icon services"></span></a></li>
				<li><a href="index.jsp?page=raports#rap">Wygeneruj Raporty<span 	class="ui_icon gallery"></span></a></li>
				
				<% if(type.equals("USER")){ %>
				<li><a href="index.jsp?page=contact#contactus">Kontakt<span class="ui_icon contactus"></span></a></li>
				<%}else{ %>
				
				
				<li id="main"><a href="#">Panel Administracyjny<span class="ui_icon aboutus"></span></a></li>
				<ul>
				<li id="submain"><a href="index.jsp?page=users#add">Użytkownicy<span class="ui_icon aboutus"></span></a></li>
				<li id="submain"><a href="index.jsp?page=machines#auto">Automaty<span class="ui_icon services"></span></a></li>
				
				</ul>
				</ul>
				
				
				
				<%}
					}
				%>
			
		</div>
		<!-- end of sidebar -->

		<div id="templatemo_main">
    	
    	<ul id="social_box">
    		<li><a href="#"></a></li>
    		<li><a href="#"></a></li>
            <li><a href="#"><img src="images/facebook.png" alt="facebook" /></a></li>
            <li><a href="#"><img src="images/twitter.png" alt="twitter" /></a></li>
            <li><a href="#"><img src="images/linkedin.png" alt="linkin" /></a></li>
            <li><a href="#"><img src="images/technorati.png" alt="technorati" /></a></li>
            <li><a href="#"><img src="images/myspace.png" alt="myspace" /></a></li>                
        </ul>
                            
 
        <div id="content">

				<!-- scroll -->


				<div class="scroll">

					<div class="scrollContainer">
					
						<div class="panel" id="home">
							
							<jsp:include page="/WEB-INF/change.jsp" />
						</div>
					
					</div>
				</div>


			</div>

			<div id="templatemo_footer">

				Copyright © 2013 <a href="#">Wojciech Śliwa</a> | Designed by <a
					href="index.jsp" rel="nofollow" target="_parent">Wojciech
					Śliwa</a>

			</div>

		</div>
	</div>

		<script	src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js'></script>
	<script type='text/javascript' src='js/logging.js'></script>
</body>
</html>
